﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using STT.Business;
using STT.Entities;

using STT.Layer.Connection;
using System.Data;

namespace STT.Report
{
    public partial class ViewGiangVien : System.Web.UI.Page
    {
        ToolBox tb = new ToolBox();
        protected void Page_Load(object sender, EventArgs e)
        {
       
            rpvHocVien.Visible = true;
            rpvHocVien.LocalReport.ReportPath = "RDLC\\GiangVien.rdlc";
            rpvHocVien.LocalReport.DataSources.Clear();
            rpvHocVien.LocalReport.DataSources.Add(new ReportDataSource("DataSet1",tb.GetDataTableByNguoiTao("TbGiangVien_SelectAll", Session["TenDN"].ToString())));
        }
    }
}